package parteSintatica;

import java.util.LinkedList;

public class Terminal {
	private String id;
	private LinkedList<String> instrucao;
	
	public Terminal(String id){
		this.id = id;
		instrucao = new LinkedList<String>();
	}
	
	public void addInstrucao(String str){
		instrucao.add(str);
	}
	
	public boolean isTerminal(String x){
		return x.equalsIgnoreCase("<" + id + ">");
	}
	
	public String getId(){
		return id;
	}
	
	public LinkedList<String> getInstrucao(){
		return instrucao;
	}
	
	
}
